package com.gitlab.lucky.common.enums;

public enum CodeEnum {
    //请求接口相关状态吗
    LOGIN_FAIL(600,"登陆失败,用户名或密码有误"),
    SUCCESS(200, "成功"),
    QUERY_DATA_NOT_EXIST(400,"请求参数错误"),
    SERVER_INTERNAL_ERROR(500, "服务器繁忙，请先领取其他类型红包"),
    ELEM(1,"elem"),
    FOREACH(2004, "FOREACH"),
    NOT_COOKIE(2000, "抱歉，由于今日代领小号不足，暂时无法帮您抢红包\n" +
            "小号每天0点会刷新,下次早点来哦"),
    NOT_LUCKY(2001, "该红包已经被领完"),
    LUCKY_TIMEOUT(2002, "红包链接已过期"),
    RECHARGE(1,"充值"),
    INVITE(2,"邀请"),
    SIGN(3,"签到"),
    INIT_USER(4,"初始化用户赠送"),
    LUCKY(5,"抢红包消耗"),
    SUPER_MEMBER(6,"领取超级会员"),
    ACTIVITY(8,"兑换积分"),
    LUCKY_API(9,"饿了么大红包"),
    GIFTBAG_API(10,"外卖红包"),
    VALIDATE(401,"需要输入验证码"),
    RECEIVE(1000,"该手机号已经领取过,去领取其他类型红包吧"),
    DEFEATED(1004,"领取失败，本次不扣积分,失败可能的原因请查看页面下方,【领取规则】"),
    FAILURE(2000,"请稍后重试!"),
    INVENTORY(10016,"此类型红包正在维护,去领取其他类型红包吧"),
    FREEZE(20001,"由于您领取到3.2元红包,请5分钟后再领取,先去领取其他类型红包吧"),
    COMPENSATION_INTEGRATION(7,"积分补偿"),
    LIMIT(2005,"今日领取上限了哦,去领取其他类型红包吧"),
    //自定义的提示
    CUSTOM(2000,"请重新领取一下哦!"),
    SMALL(20002,"红包金额较小,本次不扣除积分!,如经常这样，请联系客服处理");
    private int code;
    private String msg;

    CodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
